package com.example.kt_base.s3

//TODO 37.在Kotlin使用带let的安全调用
fun main() {

    var name: String? = null
    name = "derry"

    var r = name.let {
        if (name.isBlank()) {
            "Default"
        } else {
            "[$it]"
        }
    }

    println(r)

}
